﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Titan.Data;
using Microsoft.Practices.EnterpriseLibrary.Data;
using Titan.Logging;
using log4net;
using log4net.Config;
using System.Data.SqlClient;
using GaeaWebFramework.Runtime.Core.Entities.SystemMgt;
using GaeaWebFramework.Runtime.Core.Services.SystemMgt;
using GaeaWebFramework.Runtime.Core;
using GaeaWebFramework.Facade.Impl;
using GaeaWebFramework.Facade;
using System.Xml;

//[assembly: log4net.Config.DOMConfigurator(ConfigFile = "log.conf",ConfigFileExtension = "conf", Watch = true)] 
namespace ConsoleApplication1
{
 
    class Program
    {
        static void Main(string[] args)
        {
            //SqlHelper sql = new SqlHelper("Test");

            //SM_User table = new SM_User();

            

            //sql.Query(table);
           
            //string sqlstatement = "select * from Table_1 where id=@id";
            //SqlParameter[] sqlp = new SqlParameter[] {new SqlParameter("id",0)};

            //sql.ExecuteScalarSQL(sqlstatement, sqlp);
            
            //ILogger _logger = new LoggerFactory().GetLogger(typeof(Program));
            
            //_logger.Error("000000");
            
            //log4net.ILog log = log4net.LogManager.GetLogger(typeof(Program));
            //log.Info("aaaa");
            //RightMgtService aa = new RightMgtService();

            //LoginResult a=aa.doLogin("aa", "bb");

            //System.Console.WriteLine(a);
            //RightMgtService aa = new RightMgtService();
            //LoginResult a = aa.doLogin("aa", "bb");
            //System.Console.WriteLine(a);
            ClientInfo client = new ClientInfo();
            XmlDocument xml = new XmlDocument();

            FacadeRuntime aa = new FacadeRuntime();


            aa.RouteFunction(90111, client, xml, out xml);

            aa.RouteFunction(90222, client, xml, out xml);

            System.Console.Read();
        }
    }
}
